<?php
// +----------------------------------------------------------------------
// | 项目-后台管理左侧菜单
// +----------------------------------------------------------------------
// | Copyright (c) 2015
// +----------------------------------------------------------------------
// | Author: baiping 125618036@qq.com http://www.webipcode.com
// +----------------------------------------------------------------------
// | 2015-6-25下午6:32:33
// +----------------------------------------------------------------------
?>
<div class="col-sm-3 col-md-2 sidebar" id="subnav">
	<div class="subnav">
	<?php foreach ($main_menus['child'] as $child_key => $child_val){
		if ( !empty( $child_val )){
	?>
		<?php if( !empty( $child_key ) ){?>
		<h3>
			<!-- 获取分组的下标 -->
			<i class="glyphicon glyphicon-minus"></i><?php echo $child_key;?>
		</h3>
		<?php }?>
		<ul class="side-sub-menu">
			<?php foreach ($child_val as $sub_key => $sub_val){?>
			<li><a href="<?php echo site_url($sub_val['url'])?>" class="item"><?php echo $sub_val['title']?></a></li><li>
			<?php }?>
		</ul>
	<?php 
		}	
	}
	?>	
	</div>
</div>